package com.ch.light.web.service;


import com.ch.light.mybatis.ParamFilter;
import com.ch.light.web.model.User;

import java.util.List;

public interface UserService {

    List<User> getList(ParamFilter param);

    void updateDefaultPwd(List<String> userIds);

    void update(User user);

    void add(User user);

    void updatePwd(String originPwd,String confirmPwd,String newPwd);

    void delete(List<String> userIds);

    User getDetail(String userId);

    User getByUserId(String userId);

    List<String> getPermission(String username);

    User findByUsername(String username);

    void assignRoles(String userId, List<String> addRoleIds);

    void reassignRoles(String userId, List<String> delRoleIds);
}
